<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/jirui/bigdata/big_data_actual_sales.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/jirui/bigdata/big_data_actual_sales.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'big_data_actual_sales_id',
                footer: "Foots",
                cnName: '大数据实销发货表',
                name: 'bigdata/big_data_actual_sales',
                url: "/big_data_actual_sales/",
                sortName: "CreateDate"
            });
            const editFormFields = ref({});
            const editFormOptions = ref([]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'big_data_actual_sales_id',title:'大数据实销发货id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'vin',title:'vin码',type:'string',width:220,align:'left',sort:true},
                       {field:'phone',title:'实销客户手机号码',type:'string',width:220,align:'left'},
                       {field:'owner_name',title:'客户姓名',type:'string',width:220,align:'left'},
                       {field:'construction_date',title:'建挡日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'purchased_date',title:'购车日期',type:'datetime',width:150,align:'left',sort:true},
                       {field:'purchased_price',title:'购车价格',type:'string',width:220,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:110,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:110,align:'left',sort:true},
                       {field:'status',title:'推送状态，0:未推送，1:已推送',type:'int',width:220,require:true,align:'left'},
                       {field:'jssys',title:'jssys',type:'string',width:220,align:'left'},
                       {field:'deliver_no',title:'交货单号',type:'string',width:220,align:'left'},
                       {field:'dms_vehicle_match_order_no',title:'订单号',type:'string',width:220,align:'left'},
                       {field:'sap_voucher_time',title:'发货时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'financial_time',title:'财务核价时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'order_time',title:'提报时间（订单时间）',type:'datetime',width:150,align:'left',sort:true},
                       {field:'vehicle_model',title:'车型',type:'string',width:220,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
